package com.qdsg.ysg.doctor.util;


import com.qdsg.ysg.doctor.base.BaseApplication;

/**
 * This class is about UI module constants, unified management Interface constants
 * UI层常量类，统一管理界面常量
 */
public final class UIConstants {

    public static final String DEMO_TAG = "doctor_hyc";

    public static final String CONF_ID = "conf_id";
    public static final String CONF_TO_CALL = "conf_to_call";
    public static final String BUNDLE_KEY = "bundle_key";
    public static final String CALL_INFO = "call_info";
    public static final String CHAT_TYPE = "CHAT_TYPE";
    public static final String PERSONAL_CONTACT = "personal_contact";
    public static final String BUNDLE = "bundle";
    public static final java.lang.String VIDEO_SYSTEM_PATH = "video_system_path";
    public static final String CONST_GROUP = "const_group";
    public static final String MEDIA_RESOURCE = "media_resource";
    public static final String GROUP_MEMBER = "group_member";
    public static final String GROUP_OPERATE_MODE = "group_operate";
    public static final String GROUP_OPERATE_ADD = "group_add_member";
    public static final String GROUP_OPERATE_DELETE = "group_delete";

    public static final String CONTACT_POSITION = "contact_position";

    public static final String IS_VIDEO_CONF = "is_video_conf";
    public static final String IS_DATE_CONF = "is_date_conf";
    public static final String IS_START_SHARE_CONF = "is_start_share_conf";

    /**
     * Obtaining user avatars and info
     */
    public static final int ENTERPRISE_HEAD_SELF = 21;
    public static final int ENTERPRISE_HEAD_SYS = 22;
    public static final int ENTERPRISE_HEAD_DEF = 23;
    public static final int ENTERPRISE_HEAD_NULL = 24;
    public static final int ENTERPRISE_SEARCH_SUCCESS = 0;
    public static final int ENTERPRISE_SEARCH_NULL = 1;
    public static final int ENTERPRISE_SEARCH_FAILED = 2;
    public static final int ENTERPRISE_SELF_TERMINAL = 25;
    public static final int ENTERPRISE_SEARCH_DEPT = 105;

    public static final int SET_SYSTEM_HEAD_PHOTO_CODE = 101;
    public static final int LOAD_ALL_HEAD_ICON = 100;
    public static final int PRO_LOAD_HEADICON = 101;
    public static final int LOAD_SELF_HEADIMAGE = 102;

    /**
     * Avatar Image source
     */
    public static final int SYSTEM_PICTURE = 0;
    public static final int ALBUM_PICTURE = 1;

    /**
     * Online status
     */
    public static final int STATUS_ON_LINE = 0;
    public static final int STATUS_BUSY = 1;
    public static final int STATUS_XA = 2;
    public static final int STATUS_DND = 3;

    /**
     * Im constants
     */
    public static final String IM_CHECK_CONTACT_GROUP_NAME = "check_contact_group_name";
    public static final String IM_RETURN_CONTACT_GROUP_NAME = "return_contact_group_name";
    public static final String IM_RETURN_CONTACT_GROUP_ID = "return_contact_group_id";
    public static final String IM_RETURN_CONTACT_GROUP_ALL = "return_contact_group_all";
    public static final String IM_ALL_CONTACT_NUM = "im_all_contact_num";
    public static final String IM_CONTACT_INFO = "im_contact_info";
    public static final String IM_CHAT_GROUP_INFO = "im_chat_group_info";

    public static final int IM_TEAM_CHECKED = 7;
    public static final int IM_REQUEST_CODE_CONTACT_GROUP = 8;
    public static final int IM_RESULT_CODE_CONTACT_GROUP = 9;
    public static final int IM_CHANGE_INFO_FAILED = 10;
    public static final int IM_CHANGE_INFO = 11;
    public static final int IM_REQUEST_CODE_CHAT_GROUP_CREATE = 12;
    public static final int IM_RESULT_CODE_CHAT_GROUP_CREATE = 13;
    public static final int IM_REQUEST_CODE_CHAT_GROUP_DELETE = 14;
    public static final int IM_RESULT_CODE_CHAT_GROUP_DELETE = 15;


    public static final String FLAG = "flag";
    public static final String IM_FLAG = "imFlag";
    public static final String DIAGNOSE_ID = "diagnoseId";

    /**
     * 咨询订单类型
     * "-1" ： 历史订单
     * "1" ： 待接单
     * "2" ： 已接单
     */
    public static final String NURSE_CONSULT_1_N    = "-1";
    public static final String NURSE_CONSULT_1      = "1";
    public static final String NURSE_CONSULT_2      = "2";

    /**
     * 聊天页订单状态
     * 0 ：待接单
     * 1 ：进行中
     * 2 ：已结束
     * 5 ：已取消
     */
    public static final int NURSE_CONSULT_ORDER_0 = 0;
    public static final int NURSE_CONSULT_ORDER_1 = 1;
    public static final int NURSE_CONSULT_ORDER_2 = 2;
    public static final int NURSE_CONSULT_ORDER_5 = 5;

    /**
     * 咨询类型
     * 3 : 云门诊
     * 4 : 护理咨询
     */
    public static final int ORDER_TYPE_3 = 3;
    public static final int ORDER_TYPE_4 = 4;

    /**
     * 卡类型
     * "1" : 自费卡
     * "2" : 社保卡
     * "3" : 双卡
     */
    public static final String CARD_TYPE_1 = "1";
    public static final String CARD_TYPE_2 = "2";
    public static final String CARD_TYPE_3 = "3";


    /**
     * WebSocket cmd状态码
     * 30   : 当前患者正在通话中
     * 102  ：患者选择继续咨询
     * 103  ：患者选择结束咨询
     * 105  : 已挂断视频
     * 106  : 账号在其他设备登录
     * 211 : 医技开单
     * 211 : 医技开单
     * 212： 检查单状态变更
     */
    public static final int WEBSOCKET_CMD_30  = 30;
    public static final int WEBSOCKET_CMD_102 = 102;
    public static final int WEBSOCKET_CMD_103 = 103;
    public static final int WEBSOCKET_CMD_105 = 105;
    public static final int WEBSOCKET_CMD_106 = 106;
    public static final int WEBSOCKET_CMD_211 = 211;
    public static final int WEBSOCKET_CMD_212 = 212;

    /**
     * WebSocket command状态码
     * 11 : 接收消息
     * 20 : 离线消息-结束咨询
     *
     */
    public static final int WEBSOCKET_COMMAND_11 = 11;
    public static final int WEBSOCKET_COMMAND_20 = 20;

    /**
     * 拍照
     */
    public static final String FILE_PROVIDER_URI = BaseApplication.getContext().getApplicationInfo().processName+".fileprovider";

    /**
     * 获取患者小鱼视讯账号
     * "1" : 图文问诊
     * "2" : 护理咨询
     */
    public static final String XY_ACCOUNT_TYPE_1 = "1";
    public static final String XY_ACCOUNT_TYPE_2 = "2";

    /**
     * 图文咨询类型
     * 1:咨询
     * 2:复诊
     */
    public static final int GRAPHIC_TYPE_1 = 1;
    public static final int GRAPHIC_TYPE_2 = 2;

    /**
     * 药品是否在监管目录中
     * 0：否
     * 1：是
     */
    public static final String RED_TIP_0 = "0";
    public static final String RED_TIP_1 = "1";

}
